package com.zr.bili.service;

import com.zr.bili.dao.UserMapper;
import com.zr.bili.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangrui
 * @date 2020-04-11 22:37
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> listAll() {
        return userMapper.selectAll();
    }

    public int insertService(User user){
        return  userMapper.insertUser(user);
    }
}